write acceptance tests for autocomplete feature