Added tests for .compareDocumentPosition(). Fixed bug in .compareDocumentPosition() shim.