Added test for dom event module