testing deviceready event