Improve testing of credentials app.
Merge pull request #41 from capomastro/improve-cmd-tests

Improve testing of credentials app.