Add test for behavior described in issue #35