Class SearchBar with tests