Add test for issue 2826