How to create tests with memberships

I have a need to build an application where professors can create a class that students can sign into (and pay for) to watch videos and take online tests. Is there a combination within your plugins that would allow this?

I have the membership2 plugin and I see where you can set up online courses, but I don't see how those students and their tests can be tied to a specific teacher, and where we can set up many teachers.

Any help would be appreciated.