refactored tests to use mocked date