Improve test coverage a bit.

Fix bug in a json command caught by new test.