fix selecting filters by target value, add tests