Split device id and reg id info. Fixed test