#KJ-125 Fix threading tests. Fixed all the tests. Theoretically all should pass.