parallelizing test()