Remove network calls in tests