Account manager tests and tune.
Select which tests to run via `npm test`

Use like this:

```
TESTS="logs in properly" npm test
```

That'll run all the tests with "logs in properly" in the description.