URL tests from https://github.com/annevk/url/
Fix issues: https://critic.hoppipolla.co.uk/r/300
Merge pull request #319 from annevk/url

URL tests from https://github.com/annevk/url/