Fix the last of the tests
Fix threads, improve forking