Fixed date/time parsing in tests