Added test case for multithread support