#KJ-125 Fix threading tests. Fixed bug in previous commit.