Updated threshold test