add parseDate stub and tests