#KJ-125 Fix threading tests. Bugfix.