Clean up examples_test.go
Clean up examples_test.go

- compile regexeps once instead of over and over for each test
- unexport methods that don't need to be exported
- unset namespace instead of changing its value; `ko create -n` will set
  the right namespace

tektoncd/pipeline,tektoncd/pipeline