Fixed handling of exec timeout in sub_test.