Add ScheduleTest. Fix CourseSearch long query bug

ScheduleTest: JUnit testing file to check core functionalities.
CourseSearch can now handle queries longer than 8 characters without
crashing.