Added regression test. To be fixed.