Testing for phonegap