Add test for missing private key