oops - uncomment 'sleep' call and fix unit tests to properly check that sleep is actually called (was using wrong mock
method)