Fixed /report/test debugging and minor bugs and fixes