Add test for non-class/id attributes, rewrite parseTag