More exhaustive test for sleep()