Test refactoring according to the feature semantics