Added test for prediction