Test case for #113
Fix #113