test case for bug report #161