Fixed an issue with the date type
Fixed a test case