add signature method
Add tests for Signer.signature