phonegap stuff and tests