Testing AngularJS searchbar