Fix bugs in test_driver.sh

- $i wasn't being set properly because it was in a subshell when run
  under a while-loop.
- The format strings for the testcase weren't correct per the TAP
  protocol.

Sponsored-by: EMC / Isilon Storage Division