Added verification of the signature
Added simple test for cli_sign()