Fixed minor errors in testScriptB induced by changing the Array functions.