Add more spec tests.

I also moved the test tables out of the function to reduce their
indentation by one level.
Rename fields from "Identifiers" to the shorter, more consistent, "Names."