Add a test for d2i_AutoPrivateKey_ex with a non-default libctx