refactoring test management