search function
more unit tests