Adapt test case to trigger a bug reported by Oliver Kaiser, and
fix the bug.

--HG--
branch : HEAD
3 files changed