Add test for filtering nil text