refactor Signature spec