Fix shell tests for older prettytable versions.

Fix the shell tests so they pass for all supported prettytable
versions, as per requirements.txt (>=0.6,<0.8).

Fixes bug: #1185580.

Change-Id: I8dca23faa3c178494656ebc8088b6d1994e9869f