Unit testing for plugins