test/wrap: format mongo url as string, not path

path.join didnt work correctly since it's a url not a path