added setStartDate and setEndDate functions
added tests for setStartDate and setEndDate