Test keys returned by iterator.

Closes #28.