Adding a failing flatMap test for records.

Review by @TiarkRompf