Testing contacts in phonegap