Add test case for displayName

A macro implementation for React's displayName property exists,
but is not covered by any tests.

Make debugging test cases easier: Print a diff instead of the
actual and expected result.