Testing date functionality for validation