added expected messages to error reporting tests