add tests for ring plugin