Rename and tweak thread spawner
Fix errors in thread spawner test bench