Added tests for JsonSerializer.