Remove net class in order to mock network.