rsa test code