Yet some more unit test cases. The CourseFunctions and Session Functions become feasible after we create new instances in the database as most of the test are intended require existing data.