Fix integration test

Carriage returns were included when json was dumped to stdout.