Test all required relationships on models

These tests ensure that all required relationships in the models are
preserved.