cpp_class tests and customized test cases