add unit test to confirm ranking