modifed function performing grow test to also perform test on predict to check that the predicted results for the fitted data were as expected