add testcase for localpref