Add test for issue 2826
Merge pull request #2503 from skirpichev/2826-test

Add test for issue 2826