Implemented multithreaded test.