Improved test

Now test use ckan.plugins and helpers to make the calls.