added test for generalization