Junit test for autocomplete