Added tests for search result count

No tests for this previously