Fix unbound variable in the tests script.