Adds tests for isValidDate
Adds isValidDate function