Fixes DOM tests.