test onDeviceReady