Add test fixtures and tests for URL construction in wagtailcore