Improve tests for credentials

Check the password passed to the Gravatar API in the tests.