Improve error message generated by assertRedirects