Add unit tests for refactoring results