test application of calling closure in c runtime test