add tests for legend plugins