testing query and phonegap