Trying to solve concurrency problem in one test method