improving RSA tests + doc