added tests for course rest views