Added tests and implementation for specifying a custom keyring (specs pass)