Added test for sorting by relevance