Now skips mongo tests if a mongo server isn't available.
Fixed minor pep8 item around spaces and operators.