test cred helper