added test to validate date format