Testing error handling for remote request