Added failing test for #276
Fixed #276