Fix sleep time in test.