Test attributes after Tag. There is no tag scope attributes. You must remove them at the end of your tag invokation doTag() method