finishing the porting of node_is_type rule condition issue-2281117

Rules condition for testing if a node is of a certain type.
All assertions in this test case seem to do exactly the same thing.