moved tests to datesSpec.js