     test.equal(records.length, 0)
     test.done()
 
-exports['basic test'] = (test) ->
+exports['elements'] = (test) ->
     doc = jsdom.jsdom("<html>" +
                       "<head></head>" +
                       "<body><div><input type='text'></input></div></body>" +

            type : 'text'
    ]

    records = serialize(doc, null, doc)
    test.done()


jsdom = getFreshJSDOM()

compareRecords = (actual, expected, test) ->
    test.equal(actual.length, expected.length)
    test.notEqual(actual, null)

    for i in [0..actual.length - 1]
        test.equal(actual[i].type, expected[i].type)
        test.equal(actual[i].name, expected[i].name)
        actualAttrs = actual[i].attributes
        if !actualAttrs
            test.equal(actualAttrs, expected[i].attributes)
