Fixed sigmoid, added functionality to test_logistic_regression