Added a test for the logistic function