Improve ApiFormatJson test coverage