Handle $VERBOSE and $PATTERN in test runner

plus some other minor, seemingly unrelated garbage.