completed unit tests for searching