fix debug option in tests, too; see last commit
Merge pull request #1 from daniel-j-h/fix-debug-tests

fix debug option in tests