Update json2csvTest.js

update to work with refactored version