Private Key: Fix bug with tests and missing "new"