test case covering #2749, closes #2749