added sortbyupvotes test case