Added specs for filtering by ranks on autocomplete