Add Test for filtering directory entries