Improved mongodb configuration for testing.