Adjusted sleep() related test to new spec implementation