refactoring test execution parameter logic