Test filtering based on object attribute