Add kpm wrap functional tests

parent #936 
Not sure if this works well on non-Windows due to newline differences. To be safe, could have a string array and use `string.Join` with `Environment.NewLine`. I think this has been discussed before (probably in one of your own PRs :smile:) but I don't recall the conclusion.