Update functional test script