Fix failing test caused by repeated result line