test code for calling HEDCsp.dll