Use Plug test helpers

I've extracted our little macro into an experimental Plug test helpers library.