posixtm-tests: make T const-correct; add a test case