fixed the order of the tests to allow mocking of time()