ref #7114 implementing test to reproduce the issue