Fix tests. Also handle "id" attr.

The "id" attribute is special, so for that we'll present our data as a
simple string.