Expand unit tests for keyring.