Convert example to test.
Add missing-key test.