tweak thread tests
remove unused variables