fixed error message expectation