Fixed compilation errors in ComponentFilter tests
Fixed implementation of ComponentFilter to pass tests
Also fixed up some programmer errors in ComponentFilter tests