Add tests for date validator