refactoring of concurrent test