       # We are testing only the server one, so let's find it
       for i in intercepted
         break if i.indexOf(@identityGeneratorId) isnt -1
+      test.isTrue _.isString(i), i
       intercepted = EJSON.parse i
 
       test.isTrue intercepted.message.lastIndexOf('Exception processing PeerDB fields: Error: Test exception', 0) is 0
       test.equal intercepted.level, 'error'
-]+]


    test.equal intercepted.length, 1, intercepted

    intercepted = EJSON.parse intercepted[0]

    test.equal intercepted.message, "Document's '#{ postId }' field 'subscribers' was updated with a non-array value: 'foobar'"


    test.equal intercepted.length, 1, intercepted

    test.isTrue _.isString(intercepted[0]), intercepted[0]
    intercepted = EJSON.parse intercepted[0]

    test.equal intercepted.message, "Document's '#{ postId }' field 'author' is referencing a nonexistent document 'nonexistent'"
