Refactoring test texts