typeahead client unit tests