move remaining methods to typeahead common and fix client unit tests