Fixed script/test bug