fixes to the curl test script