Fixed tests

@ndushay 


Failures:

  1) Default Request Handler q of 'Buddhism' should get 8,500-10,650 results
     Failure/Error: resp.should have_at_most(10650).documents
       expected at most 10650 documents, got 10652
     # ./spec/default_req_handler_spec.rb:8:in `block (2 levels) in <top (required)>'

  2) journal/newspaper titles Nature behaves like great results for format journal behaves like everything query, format journal behaves like great search results exact title matches should be first
     Failure/Error: resp.should include(exp_ids).in_first(exp_ids.size + 2) # a little slop built in
       expected response to include documents ["10263656", "3195844", "8829478", "466281", "370787"] in first 7 results: {"responseHeader"=>{"status"=>0, "QTime"=>88, "params"=>{"facet"=>"false", "fl"=>"id,title_245a_display", "q"=>"Nature", "testing"=>"sw_index_test", "wt"=>"ruby", "fq"=>"format:Journal/Periodical"}}, "response"=>{"numFound"=>3497, "start"=>0, "docs"=>[{"id"=>"10595973", "title_245a_display"=>"Nature"}, {"title_245a_display"=>"Nature", "id"=>"3195844"}, {"id"=>"9451387", "title_245a_display"=>"Nature"}, {"id"=>"9763775", "title_245a_display"=>"Nature"}, {"id"=>"8829478", "title_245a_display"=>"Nature"}, {"id"=>"466281", "title_245a_display"=>"Nature"}, {"title_245a_display"=>"Nature", "id"=>"370787"}, {"id"=>"10278206", "title_245a_display"=>"Nature genetics"}, {"id"=>"9930191", "title_245a_display"=>"Nature reviews"}, {"title_245a_display"=>"Nature magazine", "id"=>"370790"}, {"title_245a_display"=>"Nature conservation", "id"=>"4028082"}, {"id"=>"9930189", "title_245a_display"=>"Nature reviews"}, {"id"=>"10575395", "title_245a_display"=>"Nature reviews"}, {"id"=>"10188361", "title_245a_display"=>"Nature reviews"}, {"id"=>"9930192", "title_245a_display"=>"Nature reviews"}, {"id"=>"9930193", "title_245a_display"=>"Nature reviews"}, {"id"=>"9930185", "title_245a_display"=>"Nature reviews"}, {"id"=>"9930188", "title_245a_display"=>"Nature reviews"}, {"title_245a_display"=>"Nature & faune", "id"=>"10248818"}, {"id"=>"10372344", "title_245a_display"=>"Nature protocols"}]}}
       Diff:
       @@ -1,2 +1,35 @@
       -[["10263656", "3195844", "8829478", "466281", "370787"]]
       +{"responseHeader"=>
       +  {"status"=>0,
       +   "QTime"=>88,
       +   "params"=>
       +    {"facet"=>"false",
       +     "fl"=>"id,title_245a_display",
       +     "q"=>"Nature",
       +     "testing"=>"sw_index_test",
       +     "wt"=>"ruby",
       +     "fq"=>"format:Journal/Periodical"}},
       + "response"=>
       +  {"numFound"=>3497,
       +   "start"=>0,
       +   "docs"=>
       +    [{"id"=>"10595973", "title_245a_display"=>"Nature"},
       +     {"title_245a_display"=>"Nature", "id"=>"3195844"},
       +     {"id"=>"9451387", "title_245a_display"=>"Nature"},
       +     {"id"=>"9763775", "title_245a_display"=>"Nature"},
       +     {"id"=>"8829478", "title_245a_display"=>"Nature"},
       +     {"id"=>"466281", "title_245a_display"=>"Nature"},
       +     {"title_245a_display"=>"Nature", "id"=>"370787"},
       +     {"id"=>"10278206", "title_245a_display"=>"Nature genetics"},
       +     {"id"=>"9930191", "title_245a_display"=>"Nature reviews"},
       +     {"title_245a_display"=>"Nature magazine", "id"=>"370790"},
       +     {"title_245a_display"=>"Nature conservation", "id"=>"4028082"},
       +     {"id"=>"9930189", "title_245a_display"=>"Nature reviews"},
       +     {"id"=>"10575395", "title_245a_display"=>"Nature reviews"},
       +     {"id"=>"10188361", "title_245a_display"=>"Nature reviews"},
       +     {"id"=>"9930192", "title_245a_display"=>"Nature reviews"},
       +     {"id"=>"9930193", "title_245a_display"=>"Nature reviews"},
       +     {"id"=>"9930185", "title_245a_display"=>"Nature reviews"},
       +     {"id"=>"9930188", "title_245a_display"=>"Nature reviews"},
       +     {"title_245a_display"=>"Nature & faune", "id"=>"10248818"},
       +     {"id"=>"10372344", "title_245a_display"=>"Nature protocols"}]}}
     Shared Example Group: "great search results" called from ./spec/journal_title_spec.rb:24
     # ./spec/journal_title_spec.rb:12:in `block (3 levels) in <top (required)>'

  3) journal/newspaper titles Nature behaves like great results for format journal behaves like title query, format journal behaves like great search results exact title matches should be first
     Failure/Error: resp.should include(exp_ids).in_first(exp_ids.size + 2) # a little slop built in
       expected response to include documents ["10263656", "3195844", "8829478", "466281", "370787"] in first 7 results: {"responseHeader"=>{"status"=>0, "QTime"=>1, "params"=>{"facet"=>"false", "fl"=>"id,title_245a_display", "q"=>"{!qf=$qf_title pf=$pf_title pf3=$pf3_title pf2=$pf2_title}Nature", "testing"=>"sw_index_test", "qt"=>"search", "wt"=>"ruby", "fq"=>"format:Journal/Periodical"}}, "response"=>{"numFound"=>1239, "start"=>0, "docs"=>[{"id"=>"10595973", "title_245a_display"=>"Nature"}, {"title_245a_display"=>"Nature", "id"=>"3195844"}, {"id"=>"9763775", "title_245a_display"=>"Nature"}, {"id"=>"9451387", "title_245a_display"=>"Nature"}, {"id"=>"8829478", "title_245a_display"=>"Nature"}, {"id"=>"466281", "title_245a_display"=>"Nature"}, {"title_245a_display"=>"Nature", "id"=>"370787"}, {"title_245a_display"=>"Da zi ran =", "id"=>"10524536"}, {"id"=>"10278206", "title_245a_display"=>"Nature genetics"}, {"id"=>"10263181", "title_245a_display"=>"Nature chemistry"}, {"id"=>"9604299", "title_245a_display"=>"Nature nanotechnology"}, {"id"=>"10372344", "title_245a_display"=>"Nature protocols"}, {"id"=>"9603973", "title_245a_display"=>"Nature methods"}, {"id"=>"10275638", "title_245a_display"=>"Nature immunology"}, {"id"=>"10274682", "title_245a_display"=>"Nature neuroscience"}, {"id"=>"10275297", "title_245a_display"=>"Nature biotechnology"}, {"id"=>"10279062", "title_245a_display"=>"Nature medicine"}, {"id"=>"9930191", "title_245a_display"=>"Nature reviews"}, {"id"=>"9930189", "title_245a_display"=>"Nature reviews"}, {"title_245a_display"=>"Nature magazine", "id"=>"370790"}]}}
       Diff:
       @@ -1,2 +1,36 @@
       -[["10263656", "3195844", "8829478", "466281", "370787"]]
       +{"responseHeader"=>
       +  {"status"=>0,
       +   "QTime"=>1,
       +   "params"=>
       +    {"facet"=>"false",
       +     "fl"=>"id,title_245a_display",
       +     "q"=>"{!qf=$qf_title pf=$pf_title pf3=$pf3_title pf2=$pf2_title}Nature",
       +     "testing"=>"sw_index_test",
       +     "qt"=>"search",
       +     "wt"=>"ruby",
       +     "fq"=>"format:Journal/Periodical"}},
       + "response"=>
       +  {"numFound"=>1239,
       +   "start"=>0,
       +   "docs"=>
       +    [{"id"=>"10595973", "title_245a_display"=>"Nature"},
       +     {"title_245a_display"=>"Nature", "id"=>"3195844"},
       +     {"id"=>"9763775", "title_245a_display"=>"Nature"},
       +     {"id"=>"9451387", "title_245a_display"=>"Nature"},
       +     {"id"=>"8829478", "title_245a_display"=>"Nature"},
       +     {"id"=>"466281", "title_245a_display"=>"Nature"},
       +     {"title_245a_display"=>"Nature", "id"=>"370787"},
       +     {"title_245a_display"=>"Da zi ran =", "id"=>"10524536"},
       +     {"id"=>"10278206", "title_245a_display"=>"Nature genetics"},
       +     {"id"=>"10263181", "title_245a_display"=>"Nature chemistry"},
       +     {"id"=>"9604299", "title_245a_display"=>"Nature nanotechnology"},
       +     {"id"=>"10372344", "title_245a_display"=>"Nature protocols"},
       +     {"id"=>"9603973", "title_245a_display"=>"Nature methods"},
       +     {"id"=>"10275638", "title_245a_display"=>"Nature immunology"},
       +     {"id"=>"10274682", "title_245a_display"=>"Nature neuroscience"},
       +     {"id"=>"10275297", "title_245a_display"=>"Nature biotechnology"},
       +     {"id"=>"10279062", "title_245a_display"=>"Nature medicine"},
       +     {"id"=>"9930191", "title_245a_display"=>"Nature reviews"},
       +     {"id"=>"9930189", "title_245a_display"=>"Nature reviews"},
       +     {"title_245a_display"=>"Nature magazine", "id"=>"370790"}]}}
     Shared Example Group: "great search results" called from ./spec/journal_title_spec.rb:40
     # ./spec/journal_title_spec.rb:12:in `block (3 levels) in <top (required)>'

  4) hyphen in queries 'Color-blindness; its dangers and its detection' behaves like hyphens without spaces imply phrase should have great results for query
     Failure/Error: @resp.should include(exp_ids).in_first(first_x).documents
       expected response to include documents ["7329437", "2323785"] in first 2 results: {"responseHeader"=>{"status"=>0, "QTime"=>1547, "params"=>{"facet"=>"false", "fl"=>"id", "q"=>"Color-blindness; its dangers and its detection", "testing"=>"sw_index_test", "wt"=>"ruby"}}, "response"=>{"numFound"=>2, "start"=>0, "docs"=>[{"id"=>"2323785"}, {"id"=>"10603445"}]}}
       Diff:
       @@ -1,2 +1,12 @@
       -[["7329437", "2323785"]]
       +{"responseHeader"=>
       +  {"status"=>0,
       +   "QTime"=>1547,
       +   "params"=>
       +    {"facet"=>"false",
       +     "fl"=>"id",
       +     "q"=>"Color-blindness; its dangers and its detection",
       +     "testing"=>"sw_index_test",
       +     "wt"=>"ruby"}},
       + "response"=>
       +  {"numFound"=>2, "start"=>0, "docs"=>[{"id"=>"2323785"}, {"id"=>"10603445"}]}}
     Shared Example Group: "hyphens without spaces imply phrase" called from ./spec/punctuation/hyphen_spec.rb:306
     # ./spec/punctuation/hyphen_spec.rb:32:in `block (3 levels) in <top (required)>'

  5) hyphen in queries 'Color-blindness [print/digital]; its dangers and its detection' should have great results for query
     Failure/Error: @resp.should include(exp_ids).in_first(first_x).documents
       expected response to include documents ["7329437", "2323785"] in first 2 results: {"responseHeader"=>{"status"=>0, "QTime"=>1407, "params"=>{"facet"=>"false", "fl"=>"id", "q"=>"Color-blindness [print/digital]; its dangers and its detection", "testing"=>"sw_index_test", "wt"=>"ruby"}}, "response"=>{"numFound"=>2, "start"=>0, "docs"=>[{"id"=>"10603445"}, {"id"=>"2323785"}]}}
       Diff:
       @@ -1,2 +1,12 @@
       -[["7329437", "2323785"]]
       +{"responseHeader"=>
       +  {"status"=>0,
       +   "QTime"=>1407,
       +   "params"=>
       +    {"facet"=>"false",
       +     "fl"=>"id",
       +     "q"=>"Color-blindness [print/digital]; its dangers and its detection",
       +     "testing"=>"sw_index_test",
       +     "wt"=>"ruby"}},
       + "response"=>
       +  {"numFound"=>2, "start"=>0, "docs"=>[{"id"=>"10603445"}, {"id"=>"2323785"}]}}
     # ./spec/punctuation/hyphen_spec.rb:340:in `block (3 levels) in <top (required)>'