Added Test cases for Schedule and corrected durationId issue.