Phonegap test conversion