[WIP] Extract test functionality

Fix #101.
This is left-over from development, so should be removed. It does raise the question what we want to happen if someone runs `phpunit` on the lib when Varnish and/or Nginx is not installed. Should be throw errors, or allow for Varnish-only development too (for instance), and just skip the Nginx tests?