phonegap testing codes