Added tests for 1 thread as well as multiple threads