Add more tests to test/dom.lua