implemented test cases for the plugin