Add account create tests
Simplify all DB API tests that check object counts
...by factoring out all the "save old object count, then do a
database operation, then check the new object count compared
to the old object count" logic into a single context manager.