better test for phonegap