unit tests for validate date fixes