test summary refactoring