Improve unit test coverage of accounts and signon adapters

Previously, only Account and Identity had adequate unit tests.
This commit adds unit tests for the other adapters.
Merge pull request #49 from chriadam/master

Improve unit tests of signon/accounts adapters, fix bugs in implementation