More test cases. Fix bug in revoke_creds.