Test for dom