   describe 'requestNextDocumentPayload', ->
     it('is equal as the manager\'s currentDocument payload', ->
       expect(@manager.documentStore.length).toBe 1
-      documentPayload = @manager.next()
+      nextDocumentDefinition = @manager.next()
+      expect(nextDocumentDefinition).toBeDefined()
+
+      interfaceType = Object.keys(nextDocumentDefinition)[0]
+      expect(interfaceType).toBeDefined()
+      expect(interfaceType).toBe 'text_nominal'
+
+      documentPayload = nextDocumentDefinition[interfaceType]
+      expect(documentPayload).toBeDefined()
       expect(@manager.currentDocument.payload).toBe documentPayload
     )
 

        successCallback = ajaxOpts.success
        successCallback(simulatedAjaxResponse)

      responseProcesor = (documentPayload) ->
        expect(documentPayload).toBeDefined()
        expect(documentPayload).not.toBe false
        expect(documentPayload.label).toBe 'mockedlabel'


    it('will load new documents if the buffer is empty', ->
      expect(@manager.documentStore.length).toBe 1
      @manager.next()
      @manager.currentDocument = undefined
      expect(@manager.documentStore.length).toBe 0

