avoid spurious race condition errors during testing