add tests for watchDOM