Work in progress, porting stuff from ckan-blackbox-testing