ArrayAdapter filtering with tests