fix named_index_and_type.t when Elasticsearch isn't installed