cpp.py: add tests for class/enum/namespace/struct declarations