Add spec for HashShortener.