Fixes #4559: create expected reports as a transaction