add plugin class
add test case for plugin class