Changed the DatePair Logic

Initially when datePair created with only one date, it is referring to
startDate. Now when only a datePair with one date, it will be reffering
to endDate only.
As there is only 3 possibilities:
1. 1 end date
2. A pair of dateRange
3. or a task with no date

Not related test are also removed