eliminate repetition in tests