add test for device filtering by entity