Added multithreaded test case