Added proper DOM tests.