Generation: add tests.