Fixing npm functional-test script