Testing for deviceready