add a test for bug 2974
Merge pull request #1359 from djmitche/bug2974

add a test for bug 2974