Added a few unit tests for credentials

These just confirm that the credentials are actually created not
that we can do anything with them right now.