fix race condition for testsuite
Merge pull request #491 from Garonenur/testsuite

fix race condition for testsuite