Add test to model template generator.