Unit tests for the JSON deserialization