try to prevent race condition in tests