main_plugin completed and test added