fix test that failed due to timeing issue