generator: add test for nil key value