test sample from phonegap