Fix autocomplete test