Fixed tests to run when multi-threaded.