moved config generation and mongo test setup to helpers