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

settings are read in from environment variable
squash