Test API phonegap