refactoring AppFabricTestHelper