Remove unused variable
Remove duplicate test
Remove unused imports
Add missing imports used by _dont_test_spawn_and_kill
Remove duplicate imports