Add unit tests and a built-in regex for urls