testbench: add tests for elasticsearch errorfile

this is not yet integrated into the automatted test build,
as the current code seems to have some issues which must
be sorted out first. A branch with patches already exists, but
they need these tests to be verified.