Bayesian latent class analysis when the reference test is imperfect.