Add test for dismissing autocomplete