Refactored NetworkProvider test