Add accounts manager tests

Minor changes. To only test the manager layer, tests mock the account layer.