The background is that in that units tests we wanted to test exactly what will be outputted, so we were sticking with Strings. But, you're right it will serialize correctly, so this syntax is fine. We can push it out in more areas.