tests: test pretty JSON, with and without plain JSON