added tests for sparse matrix inputs to BaggingClassifier and BaggingRegressor