Updated Unit-Test for DOM generation