phonegap test code