#231 adding and adapting unit test to demonstrate problem is solved

The problem was already solved by means of #237 (it is in essence the same problem). Though, to demonstrate its really fixed, I added some unit test.