There are four machines and it is known that exactly two of them are faulty. They are tested one by one, in a random order till both the faulty machines are identifed. Then the probability that only two tests are needed is
(A) $\frac{1}{3}$
(B) $\frac{1}{6}$
(C) $\frac{1}{2}$
(D) $\frac{1}{4}$