This cripples the test somewhat but the check was bad since depending on timing it could exit before the output was done, making the test flaky.