refactor for evaluating rules on whether or not the PR has been merged.
Fix tests' rounding error.