Add tests for the credentials classes.