tests for #246