fix the use of Sleep in tests by making getting the current time an injectable dependeny