Test for #284
Fix #284