test/ring: add unit tests for exact size rings