start addid some test for the plugin and sore refactoring