Fixed test cases and request.js