Use a simpler construct to test filter inclusion

Also removed tests for `stack-core-filter-data--item-in-tree' since it
no longer exists.