Adding unit test for credentials.clean

I've added a unit test for the credentials.clean method, mirroring the test for the credentials.delete.