fix(middleware): wrap url.parse for karma.js

Changes:
- implement 72452e9fce4c42dc843c1157c19c08d39e3996df