Fixed spelling error in test.
New PermanentIdPredicate.
Changed used battlefield.count or battlefield.getActivePermanents methods to take player range into account.