Fixes bug around test reporting
Removed a bit of debug code