Improving json marshal testing.