Refactor the relation_for_nwr tests to use factories