Fixed: when encryption keys are not initialized, there shouldn't be an error

I also built the sources, the build includes modifications that hadn't been built earlier.

That lead me to a bug in the tests that I also fixed.