Last test was perhaps failing because rsa key cannot be an integer and OpenSSL::PKey::RSA.new crashes if you enter a big enough integer as param