testing the phone gap functionality