fix test run output filtering to not include empty lines

this fixes sporadic test failures