fixed assertion time to wait time rather than sleeping for empty test