[tests] Unit tests for JsonValidationException class

A missing test file for JsonValidationException class