making unit tests parallelizable on single jenkins machine

* fix tests that hardcode mongo port
* cache key prefixes