Fix and add test for SearchQuery.Limit

SearchQuery.Limit was being incorrectly interpolated into the query string. Fixed this and added a test.