Add test for the issue 5673