Stop using the global DEBUG and just check the root logger
one working test
one working test
Added a slightly wider-ranging test.