Complete unit tests for current DOM implementation