added multithreading to test script