Fixed the test failure, it was failing because it was not handling the case of multiple zero rows at the end.