Error message testing fix

The testing of error messages have been implemented wrongly a few times.
This is an attempt to fix it.

For example, some of these test should have failed with the new code.
The reason they are not failling with the new string is the fact they
were not being tested beforehand.
do we need to test the message at all? It' looks like it's covered [here](https://github.com/rails/rails/blob/master/actionpack/test/controller/base_test.rb#L156-L162).