Added regression test (#418)