Add and test date type.