Fixing test case

Commit fc22e29ae6a78fbfb69db23e1bfb6f6b7e4a567c changed behavior
so that trailing newlines in output may be allowed.

The tests in integration/test_operations.py did not allow for
these newlines.
Reverting changes from commit c93804200a0d9

Obsoleted by newer development in dc2e91c0d5