phonegap APIs test