Passed test 3 for search command.