add test case for #1079