Fix initialiser issue with elasticsearch on travis