[FIX] Correct check max_testing by branch