(#3048) - fix cordova tests

Manually verified working in iOS, Android, and FirefoxOS.