testing phonegap api