working plugin with tests