Test deviceready function.