Fix error in fetching subtables when flattening report for range period.
Forgot to add new expected output file.