Refactor ReportTest and introduced more tests.