Fixes to new 'run' test

- can't set env var mid-process
- need to control fake mongo, and wait