Add mongo dependency back to template tests