Fixed script manager test and code.