added sleep test to starting scheduled task