port check_success to facets

this demonstrates how we do client side facets in check_success,
making the code a bit simpler, and pushing the logic to the tested
back end.

Also increase the max query returns by an order of magnitude to
ensure we don't miss any results.

Change-Id: Icdf4842b110e9cbe2ac4674b565e51a16a10e2ee
Merge "port check_success to facets"