Fixed test (compare nodes of the same class)