Add a test for d3af980 (#5682)

Signed-off-by: Austin Seipp <austin@well-typed.com>