         username: 'person1'
         displayName: 'Person 1'
       subdocument:
+        person:
+          _id: @person2Id
+          displayName: 'Person 2'
+          username: 'person2'
+        persons: [
+          _id: @person2Id
+          displayName: 'Person 2'
+          username: 'person2'
+        ,
+          _id: @person2Id
+          displayName: 'Person 2'
+          username: 'person2'
+        ,
+          _id: @person2Id
+          displayName: 'Person 2'
+          username: 'person2'
+        ,
+          _id: @person1Id
+          displayName: 'Person 1'
+          username: 'person1'
+        ,
+          _id: @person2Id
+          displayName: 'Person 2'
+          username: 'person2'
+        ,
+          _id: @person3Id
+          displayName: 'Person 3'
+          username: 'person3'
+        ]
         slug: 'subdocument-prefix-foobar2-subdocumentfoobar2-suffix'
         body: 'SubdocumentFooBar2'
       nested: [

    @person3 = Person.documents.findOne @person3Id,
      transform: null # So that we can use test.equal

    test.equal _.omit(@person1, 'posts', 'nestedPosts'),
      _id: @person1Id
      _schema: '1.0.0'
      username: 'person1'
      displayName: 'Person 1'
      count: 6

    testSetEqual test, @person1.posts,
      [

        body: 'FooBar4'
      ]

    test.equal _.omit(@person2, 'posts', 'subdocumentPosts', 'subdocumentsPosts', 'nestedPosts'),
      _id: @person2Id
      _schema: '1.0.0'
      username: 'person2'
      displayName: 'Person 2'
      count: 8

    testSetEqual test, @person2.posts, []
    testSetEqual test, @person2.subdocumentPosts,
      [
        _id: @postId2
        subdocument:
          body: 'SubdocumentFooBar2'
        nested: [
          body: 'NestedFooBar2'
        ]
        body: 'FooBar2'
      ]
    testSetEqual test, @person2.subdocumentsPosts,
      [
        _id: @postId1
        subdocument:
          body: 'SubdocumentFooBar1'
        nested: [
          body: 'NestedFooBar1'
        ]
        body: 'FooBar1'
      ,
        _id: @postId2
        subdocument:
          body: 'SubdocumentFooBar2'
        nested: [
          body: 'NestedFooBar2'
        ]
        body: 'FooBar2'
      ,
        _id: @postId3
        subdocument:
          body: 'SubdocumentFooBar3'
        nested: [
          body: 'NestedFooBar3'
        ]
        body: 'FooBar3'
      ,
        _id: @postId4
        subdocument:
          body: 'SubdocumentFooBar4'
        nested: [
          body: 'NestedFooBar4'
        ,
          body: 'NestedFooBar4'
        ,
          body: 'NestedFooBar4'
        ,
          body: 'NestedFooBar4'
        ,
          body: 'NestedFooBar4'
        ,
          body: 'NestedFooBar4'
        ,
          body: 'NestedFooBar4'
        ,
          body: 'NestedFooBar4'
        ]
        body: 'FooBar4'
      ,
        _id: @postId5
        subdocument:
          body: 'SubdocumentFooBar5'
        nested: [
          body: 'NestedFooBar5'
        ,
          body: 'NestedFooBar5'
        ,
          body: 'NestedFooBar5'
        ]
        body: 'FooBar5'
      ]
    testSetEqual test, @person2.nestedPosts,
      [
        _id: @postId1
