tests: modify sed parameters to work on macos
remove to examples from test.sh
whitespace fixes