Added multithreaded tests