Create plugin and add tests for it