* fixed bug where date was not being forced between startDate and endDate
* added tests for bug fix above