Changed expected results and type on errornname returned shoudl be errorname