add test for issue 20205
small tidy-up