Finish tests for modules.js. Send compress an object instead of a string. Fix bugs in middleware.