Skip tests which require Mongo if Mongo is not installed.
Merge pull request #994 from jails/refactor/make-mongo-optional-for-tests

Skip tests which require Mongo if Mongo is not installed (close #991).