add test case for #8