I tested the above wait both positive and negative failures of the test and it works well without the sleep. it replaces the assert, too.