report-concurrency fixes.

Error and data checking,
prepared data in sql for tests
adjusted tests
test for report-concurrency