test for phonegap