test classes for cpp