fixed sortByMostUpvotes testcase