teacher has_many, student belongs_to relationship working with tests