Added test for DOM state