Add some tests to course model