Added tests for filtering modes.