fix test case to account for non determinism