Refactoring initTestSetDetails