Tools for mocking and testing time-based functions