spec for handler helper