handles SCORM dateIntervals via helper function ; adds test for helper function