added tests for schedules model