Add test of Credential model