Generation: add tests (by Artem).