mock out sleep