test for webapp-optimize.js