Add unit test for shell formatter

This is in prepration for changing the behavior to escape double quotes.

Change-Id: Ib82511d066d70a1603b80ba8680b005e00113483
Related-Bug: #1269908