add new test for domdiff and update implementation