Updated mocha tests for new default behaviour of flattening json