Added test for private key existence.