fix broken MockAgent from getDeviceType