Testing in phonegap