building test execution logic