Adding a junit to test for circularity in subsorts.