sleep(0.5) in a test