Fixed test: assert against the error message.