Fixed excessive sleep in unittest.