Reorganized tests.

Still fails on Windows. urllib/urlparse in the stdlib seems to misbehave
on Windows for file paths.