Add tests for undefined date