Unit testing for keyword plugin