Simplify mprester error messages.
Add unittest for MPREstERror.