Issue #2281117: Port "Content is of type (node_is_of_type)" condition to 8.x
Converting NodeIsOfTypeTest to unit test.