Make mock server to handle fails in a better way