Refactored test execution.