Fixed test with a wrong error message