Add failing test for #1013