add test on leap years and value sanitization algorithm
tests of max number of days
Merge pull request #644 from deniak/date-leap-year

add test on leap years and value sanitization algorithm