updated handle error test