try to fix race condition in tests