add test case for #984