Updated the predict function to set testonly to TRUE and passes to 1