add device api test