fix tests
prepare weighted refinements