unittest for weighted re ranker