Wrote __clone method for credential, updated tests