add a test for one of the cases in issue 29

This adds a test for the second case in issue 29