add another test for addclass to check correct nodeType