add plugin class and test