fix race condition for testsuite