Tests and small changes for scheduled reports