in progress spec/elasticrepo/extractor_spec.rb refactoring