Refactor to isolate from accounting_test the dependency on appengine