Could you please write a regression test for this?