I think that we can also use this after key.store

```
result_key = Key.fromString(public_file.getvalue())
```

In this way the test should be a bit more flexibile to future refactoring as public_file.getvalue() is the exact content written to file.

Sorry for the previous bad suggestion.

Happy to see that the new test was useful to detect  that the wrong PRIVATE key was used.