Add tests to cover codec autoswitch

json->json_lines & plain->line

Tests for #1392