Test date parsing