Add test for elasticsearch format