add test for entity filter