Rearrange unit test files for testing ring arithmetic.

File rings-test.cpp has been split up into one per ring.