Drop referencing classes directly from relationship test

The tests of relationships should not reference models directly. This changes them to address models by typeKey.