removed unneeded call to getLogger
added unittest to check the plugin