Fix boolean API trap in CryptoKey::load
Add tests for RSA key handling