fix search spec

Search spec failed when using rails4.

It turned out the implementation of the spec was incorrect and it should have been failed with rails 3.2 either.
I tried to reconstruct the intention behind this spec by reading the commit, which introduced the test lines. I wrote comments to clarify which behaviour my implementation tests.