Firefox throws if argument given to compareDocumentPosition is not an element
test cleanup