Unit tests for url_dispatcher

Here, have some unit tests. I wrote them just so I could do a9ea03d and verify it wouldn't be breaking anything (in theory).

Also the docs need a rebuild - the url_dispatcher used in the examples is still using the list form, rather than the *args variant now being used.