#3879: Added some tests for cpp programs
#3879: Added tests for class members