add test for creating query object and setting search_for related to Bug 796137 and fix in commit 1a7c5b9a32
1a7c5b9a32