Add test for #3544 (Thanks loic84)