tests: Check test output more carefully.