Added some more tests to the has_many relation to verify more complex searches