test phonegap events