Refactor and better isolation of dependent autocomplete tests