Refactoring test tool