Fixed script errors in scripting test