CON-1813 add unit tests for dom.js module