Add unit test for ClassType.