Adjusted unit tests to filterFeatures