Added multithreaded test.