Add implementation for filtering multiple stream out, test for it.