Test case closes #112

This bug is another manifestation of #123, and they were fixed together.