Fixed bug with Time mocking in RSpec to make the tests pass.