adding tests for new dynamic schedule creation function.