Update ElementTest.java

(from job) We can't compare HTML serialized by my engine with String directly. Hence I had implemented DOM comparison test (tag name and several necessary attributes).