Fixing failing tests because ?locale= is appended to the end of the URL.

Switching from assertEquals to assertContains to be more flexible when
extensions like Translatable add query vars at the end of the links.