Test for phonegap node.js photo upload