MonkeyCoder: Fixed a bug in updating the predictor.
Add monkey tests