Refactor some relation_controller tests to use factories.