Creates the searchbar and validates it
Adds unittests