Tests for Thread.sleep() API.