Add basic test of ES index creation options

This commit adds a test of the new functionality introduced by
6569f8b060a86a6291326e76f5dbe612732b2f7f.

For #840