fix flakey async tests