Updated JsonFormatterTests with more coverage