Fixed test and removed useless sleeps.