MDL-44492 quiz reports: unit tests for report SQL

WORK IN PROGRESS!