add a wait to a test