Run the test in a process to kill the infinite loop