wait for ajax test passes