implementing test for course model