add test case for #6