Add tests for belongs_to/has_many relationships.