Add test generator for model.