WIP: Add failing test for elasticsearch error