Testing detection of deviceready