         let paragraphs = paragraphRanges(inString: textView.storage)
 
         let formatter = BlockquoteFormatter()
-        textView.storage.setAttributes(formatter.attributes, range: paragraphs[1])
+        var attributes = [String:Any]()
+        attributes = formatter.apply(toAttributes: attributes)
+        textView.storage.setAttributes(attributes, range: paragraphs[1])
         formatter.toggleAttribute(inTextView: textView, atRange: NSUnionRange(paragraphs[0], paragraphs[1]))
 
         XCTAssertTrue(existsBlockquote(for: textView.storage, in: paragraphs[0]))

        let paragraphs = paragraphRanges(inString: textView.storage)

        let formatter = BlockquoteFormatter()
        textView.storage.setAttributes(formatter.attributes, range: paragraphs[0])
        formatter.toggleAttribute(inTextView: textView, atRange: NSRange(location: 1, length: 1))

        XCTAssertFalse(existsBlockquote(for: textView.storage, in: paragraphs[0]))

        let paragraphs = paragraphRanges(inString: textView.storage)

        let formatter = BlockquoteFormatter()
        var attributes = [String:Any]()
        attributes = formatter.apply(toAttributes: attributes)
        textView.storage.setAttributes(attributes, range: paragraphs[0])
        formatter.toggleAttribute(inTextView: textView, atRange: NSUnionRange(paragraphs[0], paragraphs[1]))

        XCTAssertFalse(existsBlockquote(for: textView.storage, in: paragraphs[0]))
