Fix rps._worker_process

  Fixed potential ZeroDivision places.
  Added unit test for real rps calculations.

  Closes-Bug: #1361460

Change-Id: I656d0a2e6712283bc3b220ec2df5b8737868a96c
Merge "Fix rps._worker_process"