add functional tests for course and coursem