Add testcase to try to reproduce #2144