Remove sleep from the test functions