[test] Fix a wrong variable in a helper script