Add unit test for class manipulation in smpl.dom