added CurrentSearchState unit tests