dom: add testcase for contains