add a functional test script