include <cassert> after all mongo client stuff