Test RSA algorithm