Converted test scripts to either AMD or CommonJS.