testcase for #2314