Add tests for the datetime service