fix concurrency bug in test