Issue #9: Fixed memory leaks in test

Called getSchedule() to get a pointer to a heap-created Schedule, but
didn't delete it when done.