test phonegap plugin