     public func returnError(with error: NetworkError, count: Int) {
         (0..<count).forEach { _ in
             precondition(!callbacks.isEmpty, "There is no request left to return an error for.")
-            callbacks.removeFirst().onErrorCallback?(error)
+            returnError(with: error)
         }
     }
     

    public func returnSuccess<T>(with serializedResponse: T, httpResponse: HTTPURLResponse = HTTPURLResponse(), count: Int) {
        (0..<count).forEach { _ in
            precondition(!callbacks.isEmpty, "There is no request left to return a typed success for.")
            callbacks.removeFirst().onTypedSuccess?(serializedResponse, httpResponse)
        }
    }
    

    ///   - data: the mock response from the server. `Data()` by default
    ///   - httpResponse: the mock `HTTPURLResponse` from the server. `HTTPURLResponse()` by default
    public func returnSuccess<T>(with serializedResponse: T, httpResponse: HTTPURLResponse = HTTPURLResponse()) {
        callbacks.removeFirst().onTypedSuccess?(serializedResponse, httpResponse)
    }
    
    /// Will return a successful request, by using the given type `T` as serialized result of a request.
