Store cookie in keychain; restore it; tests