Reorganize testing code.  Document the ``-t`` option.