make unit tests respect mongo port/host settings (with default)

settings are read in from environment variable
`MongoClient()` instantiated like that is a direct mongo connection (doesn't respect settings, uses own defaults)
`modulestore()` knows its own settings and knows how to to connect respecting settings.