PHPUnit: get the user rank

Yes, we actually need to use the function we’re testing.

See #171
PHPUnit: remove redundant method in ranks testcase