Fixed multi-threaded test.