Testing phonegap plugin