adding credentialtest

adding test class for credentials