Adapt tests
Add more test for the plugin
Minor improvements. Test function 'publish'
Improve tests

Uncomment