WYC: fix for #213
Added test case.