test a logistic regression