Fixed tests with lots of sleeping