generate_test: implement example testing (#1355)

3 files changed