Help required for checking whether I have resolved the issue or not

Issue #4801 I have written some code for resolving this issue. But I'm not able to get how to test if the code works or not. Please someone help me out.