Fixed minor bug in script test.