IMO, `$DEBUG` should be `$BATS_DEBUG` and it should be defined as an option, like `-d/--debug`, not using a global variable.