command/keyring: add tests for init