test com phonegap api