cordova read/write file test