Fix tests 17, define relationships for namespaced classes
Fix tests 18, fix deprecated methods in exam_groups/new.html.erb