Tests shouldn't rely on cases defined in the json. The proper class should be instantiated and set with different attributes (valid and invalid) to ensure a consistent behavior. Json files should only be used to set the "proper environment" for the test, but not the test itself.