Adapt tests to adapted sleep() and friends spec