testcase for #99 and #98