test for DOM API