Testing requirejs with plugins and optimization