add tests for ring plugin
Merge pull request #182 from guokr/master

Ring plugin tests