Expose fleet unit count in MachineState

It seems like we're losing coverage with this change. Can we assert that the IP gets appended? Maybe add another test case?