wrap Thread/sleep to simplify tests