Add test case for issue 2572