generalize tests