Adding testcase for #40