Added tests for the segment filter.