Refactored network testcases