Added strip_attributes and tests