Add test for PR 8111. By Frits van Bommel.