rename getLog() to getDebug(), and write a better test for it