Tests OK in Postman but KO in newman?

Sorry I do not have a source or a tutorial as I wrote this myself. I am sure looking a bit of sed documentation will help with the explanation. Example tutorial

Shareing the collection can either be done a few different ways but a few are described here in the sharing section of Postman documentation