Test case for filtered getting of policies