Made corrections to the search by name unit tests