Implemented popularity-based ranking test case
Cleaned popularity-based ranking test case