Test for SearchResultSet; Test stub for Search

+ some code reformatting