Fixes #4559: create expected reports as a transaction
Merge pull request #459 from ncharles/bug_4559/dev/race_condition

Fixes #4559: create expected reports as a transaction