added testcase for #122