test for multithreaded version