Refactored search algorithms

Removed unnecessary line in both search algorithms. Refactored search
algorithm test removing pointless test. Renamed test and added comment
to show auto and step method works.