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

Previously, only Account and Identity had adequate unit tests.
This commit adds unit tests for the other adapters.