Add regression test for github issue #196.