Fix command test for python2.6, which does not raise SystemExit.