Fixed the broken tests and changed the flag

I fixed the tests. They broke because the json2csv method's arguments changed in my changes