Test code for DeviceUsageApp