[#1384] Update related controller to use a list

The controller relied on the output of related_list being a
Query object. Updated them to use the list.
[#1384] Update tests to deal with list

The tests also relied on related_list being a Query instead of
a list. Updated them and added new asserts.