Add test for dom element creation