Add a testing implementation for logistic regression.