Implementation and tests for ReportBuilder.