Added test to reproduce issue #139