Fix networkequipment inventory and begin add unit tests