added test file for logistic regression and fixed warnings