Fix range report comparison bug.
Add range report unit test.