test case for collection of classes