Fixes bug 1032033, errors in build/test/integration/helper.js r=yurenju