Fix cordova test for adding platform