add test case for #989

add test case for #989