added generate button test