Added initial private key generation and tests