Restructure CSG unit tests.