test for array of dates
use mocha