fixed mock exchange crash when handling error response
updated mock exchange to support network url