Added test - reproduces issue #142