Fixed Rp Bound bug.
Added testcases. Fixed two Rp Boundary Bugs.