Add test for this (#3593)