Add tests for dom bindings