Add teacher-course association and related tests.