make the test script do a callback to c++