Fix syntax errors in test script