testing retrieving errors in view