unit test for issue #125