added sleeps, and tests for sleeps