         pressKey "backspace", ->
           pasteContent "text/html", "<ul><li>a<ul><li>b</li></ul></li></ul>", ->
           document = getDocument()
-          equal 3, document.getBlockCount()
+          equal document.getBlockCount(), 3
 
           block = document.getBlockAtIndex(0)
-          deepEqual ["bulletList", "bullet"], block.getAttributes()
+          deepEqual block.getAttributes(), ["bulletList", "bullet"]
           equal block.toString(), "a\n"
 
           block = document.getBlockAtIndex(1)
-          deepEqual ["bulletList", "bullet", "bulletList", "bullet"], block.getAttributes()
+          deepEqual block.getAttributes(), ["bulletList", "bullet", "bulletList", "bullet"]
           equal block.toString(), "b\n"
 
           block = document.getBlockAtIndex(2)
-          deepEqual ["bulletList", "bullet"], block.getAttributes()
+          deepEqual block.getAttributes(), ["bulletList", "bullet"]
           equal block.toString(), "zz\n"
           done()
 

      typeCharacters "abc\n", ->
        pasteContent "text/html", "<ul><li>one</li><li>two</li></ul>", ->
          document = getDocument()
          equal 3, document.getBlockCount()

          block = document.getBlockAtIndex(0)
          deepEqual ["quote", "bulletList", "bullet"], block.getAttributes()
          equal block.toString(), "abc\n"

          block = document.getBlockAtIndex(1)
          deepEqual ["quote", "bulletList", "bullet"], block.getAttributes()
          equal block.toString(), "one\n"

          block = document.getBlockAtIndex(2)
          deepEqual ["quote", "bulletList", "bullet"], block.getAttributes()
          equal block.toString(), "two\n"

          done()

    typeCharacters "abc\n", ->
      pasteContent "text/html", "<ul><li>one</li><li>two</li></ul>", ->
        document = getDocument()
        equal document.getBlockCount(), 3

        block = document.getBlockAtIndex(0)
        deepEqual block.getAttributes(), ["bulletList", "bullet"]
        equal block.toString(), "abc\n"

        block = document.getBlockAtIndex(1)
        deepEqual block.getAttributes(), ["bulletList", "bullet"]
        equal block.toString(), "one\n"

        block = document.getBlockAtIndex(2)
        deepEqual block.getAttributes(), ["bulletList", "bullet"]
        equal block.toString(), "two\n"

        done()
