Date type tests (+minor fixes)