Added test for multithreading