Comparison of to component trees with isEqual method