move part of AppManagerTest setUp into setUpClass

speeds up app_manager tests from 30 mins to under 7.
Merge pull request #4397 from dimagi/speed-up-app-tests

move part of AppManagerTest setUp into setUpClass