Fix random test failures

This should fix random test failures in ApphooksPageLanguageUrlTestCase