Test Script for C++ functions