add tests for bugfix #2
bugfix: return nil if no pattern matches the url (closes: #1)