unit test for issue #86

here's a ut that reproduces the problem.