added depth parameter to Json::encodeFile()
update tests for higher coverage
added depth parameter to Json::encodeFile()