Fix gpg keys cli tests

Fix `test_redmine_4272` to pass the generated key correctly to the factory and improve some messages