All tests are imperfect: accounting for false positives and false negatives using Bayesian statistics