Add test for #315