Plugin and tests