Working saved searches.
Fixes some tests.

refs openhealthcare/elcid#80