Fix broken tests and add harness for potential mock network objects