This test case belongs in wagtailcore