Add tests for destroying a typeahead.