added a test for the presence of 'keychain'