Added new publisher tests, which requires configuration.

Also updated the tests to accept a log handler so that they can
log any debug output.
Merge branch 'master' of github.com:datagovuk/ckanext-dgu