Add test for #327