fix: fixed issues with req.url
and added more tests
#413
+195
−44
req.url
and added more tests
#413