added test for filter to count only objects that are intact