updated the functional test script