Added tests for dom handlers.