more isinstance -> equality tests