Introducing a new estimator and test for the weighted all-cause hazard ratio