Added tests for blocks with sleeps in it.