Add spec for attributes helper