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

settings are read in from environment variable
You're correct; off-by-one error on my part.