test for phone gap