[wip] rewrite document adapter tests in qunit