Fix tests in CpuSensor