improved equivalence test