Added a test case for issue #56. This isn't quite sufficient to expose the bug, but it's a start.