`clear` should set attributes to defaults