Modified testcpml.cpp for var type