             return
         }
 
-        let elements = restored.elements
-        XCTAssert(elements.count == 2)
+        XCTAssert(restored.representations.count == 2)
 
-        for element in elements {
-            XCTAssert(element.children == sampleChildren)
-            XCTAssert(element.attributes == sampleAttributes)
+        for representation in restored.representations {
+            XCTAssert(representation == sampleRepresentation)
         }
     }
 }

    var sampleElement: ElementNode {
        return ElementNode(name: "Test", attributes: self.sampleAttributes, children: self.sampleChildren)
    }
}

    /// Verifies that a UnsupportedHTML Instance can get properly serialized back and forth
    ///
    func testSnippetsGetProperlyEncodedAndDecoded() {
        let unsupported = UnsupportedHTML(representations: [sampleRepresentation, sampleRepresentation])

        let data = NSKeyedArchiver.archivedData(withRootObject: unsupported)
        guard let restored = NSKeyedUnarchiver.unarchiveObject(with: data) as? UnsupportedHTML else {
