generalize a test