Negative and positive testing circuit