Fix up more search tests

Review Request #9176 - Created Sept. 6, 2017 and submitted

Barret Rennie
Review Board

I missed a few places in the search API where model_filter should have
been passed in instead of filter for filtering search results to a
specific model. In addition, a return clause was indented incorrectly,
causing the user search to sometimes return None. Finally, a erroneous
logging call has been fixed, which caused some test failures.

Ran unit tests.

Christian Hammond
Barret Rennie
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-3.0.x (5e5d562)