Tests: Fix test_ai by removing extra unwanted flush.